<!--
 * @file 选择定位，map-key="3ff62b3f9ac6cb2c69ab06676cac1601"为临时使用，项目中请使用自己的key
 * @author its-wild(https://gitee.com/its-wild)
 * @date 2021/08/07
-->
<template>
  <div>
    <g-map
      map-key="3ff62b3f9ac6cb2c69ab06676cac1601"
      v-model="lnglat"
      map-height="80vh"
      @onSeleted="handleSelected"
    />
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import GMap from '@/components/gMap/Index.vue'
export default defineComponent({
  name: 'SelectPosition',
  components: {
    GMap
  },
  data () {
    return {
      lnglat: [106.75172, 26.62351]
    }
  },
  methods: {
    handleSelected (info: any) {
      console.log(info)
    }
  }
})
</script>

<style scoped lang="less">
</style>
